const express = require('express')
//使用express路由
const router = express.Router()
//导入路由处理函数
const userfun = require('../router_handle/userinfo')
const { setpwd } =require('../limit/user')
//导入express-joi 
const expressjoi = require('@escook/express-joi')
//上传头像
router.post('/uploadavatar',userfun.uploadavatar)
router.post('/upuserinfo',userfun.upuserinfo)
router.post('/setpwd',expressjoi(setpwd),userfun.setpwd)
module.exports = router